<?php !defined('INC') && exit('Load failure!'); ?>
{#include file='include/top.php'}

<link href="{DIR.T}css/content.css" rel="stylesheet" type="text/css" />

<div class="w_960">
	{#include file="block/left.php"}

	<div class="w_700 fr mb10">
	<script src="{DIR.T}js/jquery.soChange.js"></script>
	<script>
	$(function(){ 
	//在选项卡上的运用
		$('#tab_2_c div').soChange({
			thumbObj:'#tab_2_m li',
			slideTime:0,
			delayTime:0,
			thumbOverEvent:true,
			autoChange:false//自动切换为 false，默认为true
		});
	});
	</script>
	
	<div class="nav mb10">
	<strong>当前位置</strong> | <a title="首页" href="{DIR}">首页</a> | 
	{@res.join table1='%s_content_categroy_bind' table2='%s_content_categroy' field2='name,url,norder' on='cid' where="t1.id={$info['id']}" number='1' order='norder asc'}
	{#foreach($res as $rs)}
	<a href="{DIR}{$rs[url]}" title="{$rs[name] code='quote'}">{$rs[name]}</a> | 
	{#endforeach}
	<a href="{DIR}{$info['url']}" title="{$info[name] code='quote'}">{$info['name']}</a>
	</div>

	<div class="f_2_a pa10 mb10">
	<h1 class="h1">{$info['name']}</h1>
	<table border="0" cellspacing="0" cellpadding="0" class="ma20">
	  <tr>
		<td valign="top">
		<div id="tab_2_c" class="tab_cp_c">
			{@res table='%s_content_field' field="name,fname,type" where="mid=2" order='norder desc'}		
			{#foreach($res as $rs)}
			{#if($rs['type']=='images')}
			{? $images=explode(',',$info[$rs['fname']]) ?}
			{#foreach($images as $k=>$i)}
			<div><img src="{DIR}{$i width='340' height='270'}" width="340" height="270" class="img_1" /></div>
			{#endforeach}
			{#endif}
			{#endforeach}
		</div>		
		<ul id="tab_2_m" class="tab_cp_m">
			{@res table='%s_content_field' field="name,fname,type" where="mid=2" order='norder desc'}		
			{#foreach($res as $rs)}
			{#if($rs['type']=='images')}
			{? $images=explode(',',$info[$rs['fname']]) ?}
			{#foreach($images as $k=>$i)}
			<li><img src="{DIR}{$i width='105' height='85'}" width="105" height="85" class="img_1" /></li>
			{#endforeach}
			{#endif}
			{#endforeach}
		</ul>		
		</td>
		<td valign="top">
		{@res table='%s_content_field' field="type,name,fname" where="mid=2 and fname<>'title' and fname<>'content'" order='norder desc'}
		{#if(!empty($res))}					
		{#foreach($res as $rs)}
		{#if($rs['type']!=='images')}
		<p class="h25"><strong>{$rs[name]}：</strong>{$info[$rs['fname']] code='html'}</p>
		{#endif}
		{#endforeach}
		{#endif}
		<div class="h25"><strong>简介：</strong>
		<p class="h20 c_666">{$info[description]}</p> </div>
		<br />
		<p class="h20"><strong>即时咨询：</strong>
		<a href="http://wpa.qq.com/msgrd?v=3&uin={$system.qq}&site=qq&menu=yes" class="block" target="blank"><img border="0" SRC='http://wpa.qq.com/pa?p=1:{$system.qq}:41'></a>
		</p>
		</td>
	  </tr>
	</table>

	
	<div class="content">
		{$info['content'] code='html'}
	</div>

	<div class="contentpage">
		{$pagelist code='html'}
	</div>
	
	{@res.join table1='%s_content_tag_bind' table2='%s_content_tag' field2='tagname,url' on='tid' where="t1.id={$info['id']}"}
	{#if(!empty($res))}
	<div class="tag_wrap">
		<span>TAG：</span>
		{#foreach($res as $rs)}
		<a href="{DIR}{$rs[url]}" title="{$rs[tagname] code='quote'}">{$rs[tagname]}</a>
		{#endforeach}
	</div>	
	{#endif}
	
	<div class="tool">
    <ul>
      <li><a href="javascript:window.print()" class="print">打印本文</a></li>
      <li><a href="javascript:shutwin()" class="close">关闭本页</a></li>
      </ul>
    </div>

	<div class="updown pa15">
		{@res.join table1='%s_content' table2='%s_content_categroy_bind' field1='title,url' on='id' where="t1.mid=2 and t1.status=1 and t1.id < {$info['id']}" order='t1.id desc' number='1'}
		{#if(!empty($res))}
		{#foreach($res as $rs)}
		<p><strong>上一篇：</strong><a href="{DIR}{$rs[url]}" title="{$rs[title] code='quote'}">{$rs[title] size='80'}</a></p>
		{#endforeach}
		{#else}
		<p><strong>下一篇：</strong><a href="javascript:;">这是第一篇产品了</a></p>
		{#endif}
		{@res.join table1='%s_content' table2='%s_content_categroy_bind' field1='title,url' on='id' where="t1.mid=2 and t1.status=1  and t1.id > {$info['id']}" number='1'}
		{#if(!empty($res))}
		{#foreach($res as $rs)}
		<p><strong>下一篇：</strong><a href="{DIR}{$rs[url]}" title="{$rs[title] code='quote'}">{$rs[title] size='80'}</a></p>
		{#endforeach}
		{#else}
		<p><strong>下一篇：</strong><a href="javascript:;">这是最后一篇产品了</a></p>
		{#endif}	
	</div>

	</div>

	<div class="t_2"><h3>相关信息</h3></div>
	<div class="f_2 pa20">

	<div class="f14 h25 fl">
	产品名称: <strong class="c_blue">{$info['name'] size='50'}</strong><br />
	产品链接: <strong class="c_blue">http://{SITEURL}{DIR}{$info[url]}</strong><br />
	联系电话: <strong class="c_blue">{$system.tel}</strong><br />	
	联系QQ: <strong class="c_blue">{$system.qq}</strong><br />
	邮箱地址: <strong class="c_blue">{$system.email}</strong>
	</div>



	<div class="fr">
	<a href="http://wpa.qq.com/msgrd?v=3&uin={$system.qq}&site=qq&menu=yes" target="blank" class="url_1 mb10">在线咨询</a>
	{@res table='%s_content_categroy' field='cid,name,url' where="cid=3" number='1'}
	{#foreach($res as $rs)}
	<a href="{DIR}{$rs[url]}" class="url_1 mb10">{$rs['name']}</a>
	{#endforeach}	
	{@res table='%s_content_categroy' field='cid,name,url' where="cid=6" number='1'}
	{#foreach($res as $rs)}
	<a href="{DIR}{$rs[url]}" class="url_1 mb10">{$rs['name']}</a>
	{#endforeach}
	</div>


	<div class="clear_all"></div>



	</div>



</div>






</div>




</div>


{#include file='include/bottom.php'}

</body>
</html>